using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_Base_Help_WebContextMap : EntityTypeConfiguration<t_Base_Help_WebContext>
    {
        public t_Base_Help_WebContextMap()
        {
            // Primary Key
            this.HasKey(t => t.FID);

            // Properties
            this.Property(t => t.FMenuID)
                .IsRequired()
                .HasMaxLength(100);

            this.Property(t => t.FMenuDescription)
                .HasMaxLength(200);

            this.Property(t => t.FFormID)
                .HasMaxLength(100);

            this.Property(t => t.FFormDescription)
                .HasMaxLength(200);

            this.Property(t => t.FUrl)
                .HasMaxLength(200);

            this.Property(t => t.FSubSys)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("t_Base_Help_WebContext");
            this.Property(t => t.FID).HasColumnName("FID");
            this.Property(t => t.FMenuID).HasColumnName("FMenuID");
            this.Property(t => t.FMenuDescription).HasColumnName("FMenuDescription");
            this.Property(t => t.FFormID).HasColumnName("FFormID");
            this.Property(t => t.FFormDescription).HasColumnName("FFormDescription");
            this.Property(t => t.FUrl).HasColumnName("FUrl");
            this.Property(t => t.FSubSys).HasColumnName("FSubSys");
        }
    }
}
